package e_Collections;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package e_Collections
 * @date 2024/4/8 下午2:09
 */
public class Test03 {
    public static void main(String[] args) {
        ArrayList<Student> List = new ArrayList<Student>();
        List.add(new Student("张三", 18));
        List.add(new Student("李四", 19));
        List.add(new Student("王五", 20));
        Collections.sort(List);
        System.out.println(List);
    }
}
